{% extends "base.html" %}

{% block fades %}
  {{ block.super }}
  fadeColor("largeBox","#000000","#FFFFFF",5,10,'b');
{% endblock %}

{% block content %}
  {% if user.canEdit %}
    <div id="largeBox" name="largeBox">
      [<a href="/editBlog">tilf&oslash;j</a>]
    </div>
  {% endif %}
  {% for post in posts %}
   <div id="largeBox" name="largeBox">
      {{post.headline}}
      {% if user.canEdit %}
        [<a href="/editBlog?id={{post.key.id}}">edit</a>]
      {% endif %}
      <div id="myPar">
        <div id="blogDate">
          {{post.date|date:"d M Y"}}
        </div>
          {{post.bodyAsMarkdown|safe}}
      </div>
    </div>  
  {% endfor %}
{% endblock %}
